export default {
  mounted() {
    window.onresize = () => {
      if (window.onResizeTimer) {
        clearTimeout(window.onResizeTimer);
      }
      window.onResizeTimer = setTimeout(() => {
        if (this.$_onWindowResize) {
          this.$_onWindowResize();
        }
      }, 300);
    };
  }
};
